using SqlSugar;
using System.Collections.Generic;

namespace ByteSite.Entitys
{
    /// <summary>
    /// 系统频道表
    /// </summary>
    public class dt_site_channel
    {
        /// <summary>
        /// 系统频道表
        /// </summary>
        public dt_site_channel()
        {
        }

        /// <summary>
        /// 自增ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public System.Int32 id { get; set; }

        /// <summary>
        /// 站点ID
        /// </summary>
        public System.Int32? site_id { get; set; }

        /// <summary>
        /// 频道名称
        /// </summary>
        public System.String name { get; set; }

        /// <summary>
        /// 频道标题
        /// </summary>
        public System.String title { get; set; }

        /// <summary>
        /// 否开启评论
        /// </summary>
        public System.Int32? is_comment { get; set; }

        /// <summary>
        /// 是否开启相册功能
        /// </summary>
        public System.Int32? is_albums { get; set; }

        /// <summary>
        /// 是否开启附件功能
        /// </summary>
        public System.Int32? is_attach { get; set; }

        /// <summary>
        /// 是否开启规格
        /// </summary>
        public System.Int32? is_spec { get; set; }

        /// <summary>
        /// 是否开启品牌
        /// </summary>
        public System.Int32? is_brand { get; set; }

        /// <summary>
        /// 是否允许投稿
        /// </summary>
        public System.Int32? is_contribute { get; set; }

        /// <summary>
        /// 排序数字
        /// </summary>
        public System.Int32? sort_id { get; set; }

        /// <summary>
        /// 状态0启用1禁用
        /// </summary>
        public System.Int32? is_lock { get; set; }

        [SugarColumn(IsIgnore = true)]
        public List<Entitys.dt_site_channel_field> channel_fields { get; set; }
    }
}